import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

import App from './App.vue'
import router from './router'
import icon from '@/components/global/icon.vue'

import "@/styles/element/index.scss";
import '@/styles/common/main.css'
import '@/styles/common/common.scss'

const app = createApp(App)

app.component('icon',icon)

const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

app.use(pinia)
app.use(router)

app.mount('#app')